import React from 'react'
import { ComponentStory, ComponentMeta } from '@storybook/react'

import Component from '../../components/QuestionComponents/QuestionInfo/Component'

export default {
  title: 'Question/QuestionInfo',
  component: Component,
} as ComponentMeta<typeof Component>

const Template: ComponentStory<typeof Component> = args => <Component {...args} />

// 默认属性
export const Default = Template.bind({})
Default.args = {}

// 设置属性
export const SetProps = Template.bind({})
SetProps.args = {
  title: 'hello',
  desc: 'world',
}

// 换行
export const DescBreakLine = Template.bind({})
DescBreakLine.args = {
  title: 'hello',
  desc: `a\nb\nc`,
}
